package ym.ecrm.core.domain.marketManagement;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;
import ym.ecrm.core.domain.systemManagement.User;

/**
 * 申请礼品类
 * @author fage
 *@version 1.0
 */
@Entity
@Table(name = "applyGift")
public class ApplyGift extends BaseEntity{

	/**
	 * recordCode 记录编号
	 */
	private String recordCode;
	/**
	 * gift 对应礼品
	 */
	@ManyToOne(targetEntity = Gift.class
			 ,cascade={CascadeType.PERSIST,CascadeType.MERGE})
	@JoinColumn(name="giftId")
	private Gift gift;
	/**
	 * quantity 数量
	 */
	private String quantity;
	/**
	 * use 用途
	 */
	private String use;
	/**
	 * user 领用人
	 */
	private String user;
	/**
	 * recipientsTime 领用时间
	 */
	private String recipientsTime;
	public String getRecordCode() {
		return recordCode;
	}
	public void setRecordCode(String recordCode) {
		this.recordCode = recordCode;
	}
	public String getQuantity() {
		return quantity;
	}
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	public String getUse() {
		return use;
	}
	public void setUse(String use) {
		this.use = use;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getRecipientsTime() {
		return recipientsTime;
	}
	public void setRecipientsTime(String recipientsTime) {
		this.recipientsTime = recipientsTime;
	}
	public Gift getGift() {
		return gift;
	}
	public void setGift(Gift gift) {
		this.gift = gift;
	}
	
}
